# -*- coding: utf-8 -*-
# @Time: 2021/9/26 15:11
# @Author: yh
# @Remark: 设备状态model层
from mxsoftpy import Model
from pydantic import constr

from model.common.VideoManage.VideoQuality.conf import TestValueEnum


class VideoStateSelectModel(Model):
    """
    设备状态查询参数模型
    """
    device_name: constr(max_length=50) = ''        # 设备名称
    device_ip: str = ''                            # 网络地址
    test_state: TestValueEnum = TestValueEnum.all  # 事件类型
    test_code: str = ''                            # 故障类型
